<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"
      xmlns:shiro="http://www.thymeleaf.org/thymeleaf-extars-shiro">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
这里是主页!<br>
<div shiro:hasPermission="user:add">
<a th:href="@{/user/add}">去add</a><br>
</div>
<div shiro:hasPermission="user:update">
<a th:href="@{/user/update}">去update</a></div>
</body>
</html>